{"version":3,"file":"google_fonts_panel.map.js","names":["BX","namespace","addClass","Landing","Utils","proxy","append","slice","clone","bind","latinPangrams","cyrillicPangrams","arabicPangram","hebrewPangram","koreanPangram","initedItems","WeakSet","UI","Panel","GoogleFonts","Content","apply","this","title","Loc","getMessage","pangramIndex","layout","overlay","client","Client","rootWindow","PageObject","getRootWindow","container","document","body","querySelector","searchForm","createSearchForm","categoryForm","createCategoryForm","languageForm","createLanguageForm","sidebar","createListLayout","content","createPaginationLayout","Event","getMoreButton","onMoreButtonClick","getInstance","instance","prototype","constructor","__proto__","superclass","Dom","create","tag","props","classList","getListLayout","children","className","text","getPaginationLayout","show","params","showPromise","call","then","fields","enableEdit","input","focus","isFontsLoaded","saveResolver","style","display","context","page","hide","showLoader","getFonts","response","applyFilter","filteredResponse","paginatedList","paginateList","loadFonts","renderList","hideLoader","event","preventDefault","moreButton","lastPage","length","removeClass","self","Promise","resolve","resolver","getList","saveResponse","list","result","push","splice","loader","Loader","target","offset","left","top","transition","opacity","Type","isArrayFilled","WebFont","load","google","families","map","font","family","replace","classes","active","fonts","ready","setTimeout","searchQuery","getValue","subsets","categories","items","item","value","filter","options","every","lang","indexOf","some","category","isStringFilled","String","toLowerCase","includes","createListItem","pangram","direction","align","onFilterChange","filteredFonts","scrollTop","renderItems","insertAdjacentHTML","join","innerHTML","getEmptyStub","forEach","initItem","index","has","button","onFontSelect","add","sourceText","innerText","getListItems","querySelectorAll","debouncedRuntime","Runtime","debounce","Form","StyleForm","Field","Text","selector","textOnly","onValueChange","placeholder","form","fieldFactory","Factory","FieldFactory","RU","window","location","host","addField","type","name","checked","selectedFont","onApply","subset","onCancel"],"sources":["google_fonts_panel.js"],"mappings":"CAAC,WACA,aAEAA,GAAGC,UAAU,uBAEb,IAAIC,EAAWF,GAAGG,QAAQC,MAAMF,SAChC,IAAIG,EAAQL,GAAGG,QAAQC,MAAMC,MAC7B,IAAIC,EAASN,GAAGG,QAAQC,MAAME,OAC9B,IAAIC,EAAQP,GAA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